/*
    两数相除，输出商和余数
*/
#include<stdio.h>

int main(int argc, char const *argv[])
{
    int dividend,   //被除数
        divisor,    //除数
        quotient,   //商
        remainder;   //余数

    printf("请输入被除数：");
    scanf("%d",&dividend);
    printf("请输入除数：");
    scanf("%d",&divisor);

    quotient = dividend / divisor;  //求商
    remainder = dividend % divisor; //求余数

    printf("%d / %d = %d...%d\n",dividend,divisor,quotient,remainder);

    return 0;
}
